package org.dromara.retail.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import org.dromara.retail.domain.CrmSaleReport;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


/**
 * 销售日报视图对象 crm_sale_report
 *
 * @author Lion Li
 * @date 2024-05-06
 */
@Data
@ExcelIgnoreUnannotated
@AutoMapper(target = CrmSaleReport.class)
public class CrmSaleReportVo implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @ExcelProperty(value = "ID")
    private Long id;

    /**
     * 销售日期
     */
    @ExcelProperty(value = "销售日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date saleTime;

    /**
     * 备用金
     */
    @ExcelProperty(value = "备用金")
    private BigDecimal spareMoney;

    /**
     * 销售收入
     */
    @ExcelProperty(value = "销售收入")
    private BigDecimal saleMoney;

    /**
     * 其他收入
     */
    @ExcelProperty(value = "其他收入")
    private BigDecimal otherMoney;

    /**
     * 货款支出
     */
    @ExcelProperty(value = "货款支出")
    private BigDecimal goodsMoney;

    /**
     * 代付款
     */
    @ExcelProperty(value = "代付款")
    private BigDecimal agentMoney;

    /**
     * 其他支出
     */
    @ExcelProperty(value = "其他支出")
    private BigDecimal otherExpenditure;

    /**
     * 银行存款
     */
    @ExcelProperty(value = "银行存款")
    private BigDecimal bankMoney;

    /**
     * 支出
     */
    @ExcelProperty(value = "支出")
    private BigDecimal expenditure;

    /**
     * 理论结余
     */
    @ExcelProperty(value = "理论结余")
    private BigDecimal balance;

    /**
     * 实收现金
     */
    @ExcelProperty(value = "实收现金")
    private BigDecimal money;

    /**
     * 毛利率
     */
    @ExcelProperty(value = "毛利率")
    private BigDecimal grossProfitMargin;

    /**
     * 销售利润
     */
    @ExcelProperty(value = "销售利润")
    private BigDecimal saleProfit;

    /**
     * 毛利润
     */
    @ExcelProperty(value = "毛利润")
    private BigDecimal grossProfit;

    /**
     * 结算差异
     */
    @ExcelProperty(value = "结算差异")
    private BigDecimal difference;
     /**
     * 累计销售额
     */
    @ExcelProperty(value = "结算总额")
    private BigDecimal totalMoney;




}
